package com.eastfair.venuebooking.dto;

import com.eastfair.venuebooking.enumeration.ExhibitionTaskFinishStatusEnum;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 实体类
 * 任务
 * </p>
 *
 * @author linan
 * @since 2022-06-08
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "ExhibitionTaskPageQuery", description = "任务")
public class ExhibitionTaskPageQuery implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 展会id
     */
    @ApiModelProperty(value = "展会id")
    @NotNull(message = "展会id不能为空",groups = Check.class)
    private Long exhibitionId;
    /**
     * 任务标题
     */
    @ApiModelProperty(value = "任务标题")
    private String taskName;
    /**
     * 开始时间
     */
    @ApiModelProperty(value = "开始时间")
    private LocalDateTime startTime;
    /**
     * 结束时间
     */
    @ApiModelProperty(value = "结束时间")
    private LocalDateTime endTime;
    /**
     * 环节id
     */
    @ApiModelProperty(value = "环节id")
    private Long segmentId;
    /**
     * 环节名称
     */
    @ApiModelProperty(value = "环节名称")
    private String segmentName;
    /**
     * 展厅id
     */
    @ApiModelProperty(value = "展厅id")
    private Long spaceId;
    /**
     * 展厅名称
     */
    @ApiModelProperty(value = "展厅名称")
    private String spaceName;

    /**
     * 完成状态 #{NOT_FINISHED:未完成;HAVE_IN_HAND:进行中;COMPLETED:已完成}
     */
    @ApiModelProperty(value = "完成状态 #{NOT_FINISHED:未完成;HAVE_IN_HAND:进行中;COMPLETED:已完成}")
    private ExhibitionTaskFinishStatusEnum finishStatus;

    /**
     * 备注（任务描述）
     */
    @ApiModelProperty(value = "备注（任务描述）")
    private String remark;

    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id")
    private Long projectId;

    public interface Check{};

}
